package cn.org.donald.service.game;

import cn.org.donald.pojo.dto.game.GameFeatureDto;
import cn.org.donald.pojo.entity.game.Feature;
import cn.org.donald.pojo.entity.game.Game;
import cn.org.donald.pojo.entity.game.GameFeature;
import cn.org.donald.pojo.vo.GameVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Donald
 * @since 2020-12-12
 */
public interface GameFeatureService extends IService<GameFeature> {

    /**
     * 新增游戏和特性关联记录
     * @param gameFeatureDto
     * @return
     */
    boolean add(GameFeatureDto gameFeatureDto);

    /**
     * 删除游戏和特性关联记录
     * @param gameFeatureDto
     * @return
     */
    boolean delete(GameFeatureDto gameFeatureDto);

    /**
     * 根据特性id查询游戏
     * @param featureId
     * @return
     */
    List<GameVo> findGameByFeatureId(Long featureId);

    /**
     * 根据游戏id查询特性
     * @param gameId
     * @return
     */
    List<Feature> findFeatureByGameId(Long gameId);
}
